<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>布尔值</title>
</head>
<body>
<script type="text/javascript">
  var bool = true;

  console.log(bool);
  console.log(typeof bool);

</script>
</body>
</html>